//
//  YFStatisticsApi.h
//  CoollangTennisBall
//
//  Created by Coollang on 2018/1/15.
//  Copyright © 2018年 Coollang-YF. All rights reserved.
//

#import "YFBaseRequest.h"


@class DeleteDate;
@interface YFStatisticsApi : YFBaseRequest

// 获取用户更新主页数据最新的时间戳
+ (instancetype)getUseruploadSportDataLastTimeWithComplete:(void(^)(BOOL success,NSString *lastTimeStamp))completeBlock;

/**
 * 获取主页运动数据
 *
 * localLastUploadTime: 本地最新的时间戳
 */
+ (instancetype)getMainHomeSportDatasWithUploadTime:(NSString *)localLastUploadTime withComplete:(void(^)(BOOL success,YFStatisticsApi *resultApi, NSString *lastUploadTime,NSArray<SportRecordItem *> *sportRecordItemsList))completeBlock;


// 获取数据统计目标
+ (instancetype)getStatisticTarget;
// 修改数据统计目标
+ (instancetype)changeStatisticsTargetWithCount:(NSInteger)count;

/**
* 删除或恢复主页某一天运动数据
*
* dayString  //格式  2016-05-12
* flag  //0表示恢复 1表示删除
*/
+ (instancetype)deleteHomeSportDatawithDateString:(NSString *)dayString flagReocrd:(BOOL)flag;

/**
 * 获取主页已删除的运动数据
 */
+ (instancetype)getHomeDeleteListWithComlpete:(void(^)(BOOL success,NSArray <DeleteDate *>*deleteSportDates))completeBlock;


/**
 * 获取天的运动详情报告
 */
+ (instancetype)getSportDetailReportWithSportDateString:(NSString *)dateString;


/**
 * 上传主页运动数据
 *
 * localLastUploadTime: 本地最新的时间戳
 */
+ (instancetype)uploadHomeSportDataWithSportItems:(NSArray <SportRecordItem *>*)sportItems;




@end
